************************************************************************************************************************
************************************************************************************************************************
** Adjusted Standard Errors for "Informing the Leader: Bureaucracies and International Crises"
************************************************************************************************************************
************************************************************************************************************************

** Specifications with fixed effects follow the advice in Cameron and Miller (2015) to use "within" method when clusters have few observations


*******
** Set working directory and load data
clear
import delimited using "BureaucracyLevel_Polished.csv"
encode obs, gen(nobs)
xtset nobs

*******
** Content Outcome
  ** no FEs [Manuscript Table 1 Model 1]
reg fnbstd state
reg fnbstd state, cl(obs)

  ** FEs [Manuscript Table 1 Model 3]
xtreg fnbstd state, fe
xtreg fnbstd state, fe vce(robust)

*******
** Uncertainty Outcome
  ** no FEs [Manuscript Table 2 Model 1]
reg uperbcracy100 state
reg uperbcracy100 state, cl(obs)

  ** FEs [Manuscript Table 2 Model 3]
xtreg uperbcracy100 state, fe
xtreg uperbcracy100 state, fe vce(robust)
